package cn.abyss.admin.ums.service;

import cn.abyss.admin.ums.model.UmsAdminRoleRelation;
import cn.abyss.admin.ums.model.UmsResource;
import cn.abyss.admin.util.ResultMap;

import java.util.List;
import java.util.Map;

/**
 * Description:
 *
 * @author zhangsj
 * @date Created on 2021/8/26
 */
public interface UmsAdminRoleRelationService {
    /**
     * 新增
     * @param umsAdminRoleRelation
     * @throws Exception
     */
    public void insert(UmsAdminRoleRelation umsAdminRoleRelation) throws Exception;

    /**
     * 修改
     * @param umsAdminRoleRelation
     * @throws Exception
     */
    public void update(UmsAdminRoleRelation umsAdminRoleRelation) throws Exception;

    /**
     * 删除 -- 实体删除，一般不用
     * @param id
     * @throws Exception
     */
    public void delete(Long id) throws Exception;

    /**
     * 根据主键查询
     * @param id
     * @return
     * @throws Exception
     */
    public UmsAdminRoleRelation getById(Long id) throws Exception;

    /**
     * 分页查询
     * @param map
     * @param pageNum
     * @param pageSize
     * @return
     * @throws Exception
     */
    public Map<String, Object> listForPage(Map<String, Object> map, int pageNum, int pageSize) throws Exception;

    /**
     * 条件查询
     * @param map
     * @return
     * @throws Exception
     */
    public List<UmsAdminRoleRelation> query(Map<String, Object> map) throws Exception;

    /**
     * 合计查询
     * @param map
     * @return
     * @throws Exception
     */
    public ResultMap getSummation(Map<String, Object> map) throws Exception;
    /**
     * 按条件查询map
     * @param map
     * @return
     * @throws Exception
     */
    public List<ResultMap> listForUmsInfo(Map<String, Object> map) throws Exception;

    List<UmsResource> queryResourceList(Map<String, Object> map);
}
